package com.yx.cloud.bean.tuya;

public class RequestPathBean {

    /**
     * startPos : 0
     * mask : 0
     */

    private int startPos;
    private int mask;

    private RequestPathBean(Builder builder) {
        setStartPos(builder.startPos);
        setMask(builder.mask);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getStartPos() {
        return startPos;
    }

    public void setStartPos(int startPos) {
        this.startPos = startPos;
    }

    public int getMask() {
        return mask;
    }

    public void setMask(int mask) {
        this.mask = mask;
    }

    @Override
    public String toString() {
        return "{" +
                "\"startPos\":" + startPos +
                ", \"mask\":" + mask +
                '}';
    }

    public static final class Builder {
        private int startPos;
        private int mask;

        private Builder() {
        }

        public Builder setStartPos(int startPos) {
            this.startPos = startPos;
            return this;
        }

        public Builder setMask(int mask) {
            this.mask = mask;
            return this;
        }

        public RequestPathBean build() {
            return new RequestPathBean(this);
        }
    }
}
